package com.example.gobang_system.service;

import com.example.gobang_system.common.pojo.UserInfo;
import com.example.gobang_system.websockethandler.param.PutChessParam;
import org.springframework.stereotype.Service;

@Service
public interface GameService {
    /**
     * 处理落子请求
     * @param param
     * @param userInfo
     */
    void putChess(PutChessParam param, UserInfo userInfo);

    /**
     * 更新玩家分数
     * @param winner
     * @param loser
     */
    void updateScore(Long winner, Long loser);
}
